﻿<script>
	$(function(){
		shownLogon();
		shownUserId();
	})

	function shownLogon(){
		if(getCurrentUserId()){
			removeAttrHidden($('[zyf-shown-logon]'));
		}
	}

	function shownUserId(){
		let $elements = $('[zyf-shown-userId]');
		$elements.each(function(){
			let id = $(this).attr("zyf-shown-userId");
			if(getCurrentUserId()==id){
				removeAttrHidden($(this));
			}
		})
	}

	function removeAttrHidden($elements){
		$elements.removeAttr("hidden");
	}
</script>
